Skip to content

Rename crisis alert notification contract to email#55

Merged
Pigbibi merged 1 commit into
mainfrom
rename-crisis-alert-email-config
May 25, 2026
Merged

Rename crisis alert notification contract to email#55
Pigbibi merged 1 commit into
mainfrom
rename-crisis-alert-email-config

Conversation

@Pigbibi

@Pigbibi Pigbibi commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • rename the strategy plugin crisis alert notification helper from Google Voice-specific naming to generic email naming
  • expose CRISIS_ALERT_EMAIL_* as the public configuration contract
  • update the shared plugin alert channel and runtime contract docs to use email

Tests

  • PYTHONPATH=src pytest tests/test_strategy_plugin_email_notifications.py tests/test_strategy_plugins.py
  • PYTHONPATH=src ruff check .

@Pigbibi Pigbibi merged commit 3c8f52b into main May 25, 2026
1 check passed
@Pigbibi Pigbibi deleted the rename-crisis-alert-email-config branch May 25, 2026 10:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c9a1fede33

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

strategy_label=strategy_label,
context_label=context_label,
alert_namespace="strategy_plugin_google_voice_alert",
alert_namespace="strategy_plugin_email_alert",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep alert namespace stable to preserve dedupe history

Changing alert_namespace to "strategy_plugin_email_alert" causes every alert key to change, because build_strategy_plugin_alert_key includes namespace in both the payload hash and key path. After upgrading, previously recorded markers will no longer match identical signals, so duplicate suppression is lost and already-sent crisis alerts can be sent again until new markers are rebuilt. If this rename is meant to be non-disruptive, keep the old namespace (or perform dual-read compatibility) during migration.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant